<%@ page language="java" contentType="text/html; charset=utf-8"  
    pageEncoding="utf-8"%>  
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>  
<!DOCTYPE html>
<html lang="en"> 
 	<!-- 第一个装饰页面 -->  
    <head>  
		<!-- 从被装饰页面获取title标签内容,并设置默认值-->  
		<title><decorator:title default="默认title"/></title>  
		<!-- 从被装饰页面获取head标签内容 -->  
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" href="${ctx }/static/icon/favicon.png">
		<decorator:head/>  
    </head>  
  
    <body>  
       <h2>SiteMesh装饰header</h2>  
       <hr />  
	    <!-- 从被装饰页面获取body标签内容 -->  
	    <decorator:body />  
       <hr />  
       <h2>SiteMesh装饰footer</h2>  
    </body>  
</html>  